import request from "@/utils/request";

// 查询服务中心列表
export function serviceCenterList(query) {
  return request({
    url: "/serviceCenter/centerPage",
    method: "get",
    params: query,
  });
}

// 新增服务中心用户
export function addServiceCenter(data) {
  return request({
    url: "/serviceCenter/addServiceCenter",
    method: "post",
    data: data,
  });
}

// 禁用用户
export function userProhibit(data) {
  return request({
    url: "/serviceCenter/disable",
    method: "put",
    data: data,
  });
}

// 拨款
export function payMoneyForService(data) {
  return request({
    url: "/serviceCenter/addFunds",
    method: "post",
    data: data,
  });
}

// 修改服务中心信息
export function editCenterInfo(data) {
  return request({
    url: "/serviceCenter/updateCenter",
    method: "put",
    data: data,
  });
}

// 拨款明细
export function getRecordLog(data) {
  return request({
    url: "/serviceCenter/findCenterIncome",
    method: "get",
    params: data,
  });
}

// 支出明细
export function getdDisburseRecordLog(data) {
  return request({
    url: "/web/customerRecharge/findCenterGrant",
    method: "get",
    params: data,
  });
}
